package org.example.service.impl;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import jakarta.annotation.Resource;
import org.example.feign.ConsumerFeign;
import org.example.service.ConsumerService;
import org.springframework.stereotype.Service;

/**
 * @Auther:Liu
 * @Testname:ConsumerServiceImpl
 * @Date:2025/9/10 14:43
 */
@Service
public class ConsumerServiceImpl implements ConsumerService {
    @Resource
    private ConsumerFeign consumerFeign;
    @Override
    public String A() {
        return consumerFeign.a();
    }

    @Override
    public String B() {
        return consumerFeign.b();
    }

    @SentinelResource("messageD")
    public String D() {
        return "This is D";
    }
}
